Optimal. Leaf size=277 \[ -\frac {(75 A-163 B+283 C) \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(195 A-475 B+787 C) \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{240 a^3 d}+\frac {(45 A-85 B+157 C) \tan (c+d x) \sec ^2(c+d x)}{80 a^2 d \sqrt {a \sec (c+d x)+a}}+\frac {(465 A-985 B+1729 C) \tan (c+d x)}{120 a^2 d \sqrt {a \sec (c+d x)+a}}-\frac {(A-B+C) \tan (c+d x) \sec ^4(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}-\frac {(5 A-13 B+21 C) \tan (c+d x) \sec ^3(c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.90, antiderivative size = 277, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.163, Rules used = {4084, 4019, 4021, 4010, 4001, 3795, 203} \[ \frac {(45 A-85 B+157 C) \tan (c+d x) \sec ^2(c+d x)}{80 a^2 d \sqrt {a \sec (c+d x)+a}}-\frac {(75 A-163 B+283 C) \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(195 A-475 B+787 C) \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{240 a^3 d}+\frac {(465 A-985 B+1729 C) \tan (c+d x)}{120 a^2 d \sqrt {a \sec (c+d x)+a}}-\frac {(A-B+C) \tan (c+d x) \sec ^4(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}-\frac {(5 A-13 B+21 C) \tan (c+d x) \sec ^3(c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 3795
Rule 4001
Rule 4010
Rule 4019
Rule 4021
Rule 4084
Rubi steps
\begin {align*} \int \frac {\sec ^4(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx &=-\frac {(A-B+C) \sec ^4(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {\int \frac {\sec ^4(c+d x) \left (4 a (B-C)+\frac {1}{2} a (5 A-5 B+13 C) \sec (c+d x)\right )}{(a+a \sec (c+d x))^{3/2}} \, dx}{4 a^2}\\ &=-\frac {(A-B+C) \sec ^4(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(5 A-13 B+21 C) \sec ^3(c+d x) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {\int \frac {\sec ^3(c+d x) \left (-\frac {3}{2} a^2 (5 A-13 B+21 C)+\frac {1}{4} a^2 (45 A-85 B+157 C) \sec (c+d x)\right )}{\sqrt {a+a \sec (c+d x)}} \, dx}{8 a^4}\\ &=-\frac {(A-B+C) \sec ^4(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(5 A-13 B+21 C) \sec ^3(c+d x) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {(45 A-85 B+157 C) \sec ^2(c+d x) \tan (c+d x)}{80 a^2 d \sqrt {a+a \sec (c+d x)}}+\frac {\int \frac {\sec ^2(c+d x) \left (\frac {1}{2} a^3 (45 A-85 B+157 C)-\frac {1}{8} a^3 (195 A-475 B+787 C) \sec (c+d x)\right )}{\sqrt {a+a \sec (c+d x)}} \, dx}{20 a^5}\\ &=-\frac {(A-B+C) \sec ^4(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(5 A-13 B+21 C) \sec ^3(c+d x) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {(45 A-85 B+157 C) \sec ^2(c+d x) \tan (c+d x)}{80 a^2 d \sqrt {a+a \sec (c+d x)}}-\frac {(195 A-475 B+787 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{240 a^3 d}+\frac {\int \frac {\sec (c+d x) \left (-\frac {1}{16} a^4 (195 A-475 B+787 C)+\frac {1}{8} a^4 (465 A-985 B+1729 C) \sec (c+d x)\right )}{\sqrt {a+a \sec (c+d x)}} \, dx}{30 a^6}\\ &=-\frac {(A-B+C) \sec ^4(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(5 A-13 B+21 C) \sec ^3(c+d x) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {(465 A-985 B+1729 C) \tan (c+d x)}{120 a^2 d \sqrt {a+a \sec (c+d x)}}+\frac {(45 A-85 B+157 C) \sec ^2(c+d x) \tan (c+d x)}{80 a^2 d \sqrt {a+a \sec (c+d x)}}-\frac {(195 A-475 B+787 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{240 a^3 d}-\frac {(75 A-163 B+283 C) \int \frac {\sec (c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx}{32 a^2}\\ &=-\frac {(A-B+C) \sec ^4(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(5 A-13 B+21 C) \sec ^3(c+d x) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {(465 A-985 B+1729 C) \tan (c+d x)}{120 a^2 d \sqrt {a+a \sec (c+d x)}}+\frac {(45 A-85 B+157 C) \sec ^2(c+d x) \tan (c+d x)}{80 a^2 d \sqrt {a+a \sec (c+d x)}}-\frac {(195 A-475 B+787 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{240 a^3 d}+\frac {(75 A-163 B+283 C) \operatorname {Subst}\left (\int \frac {1}{2 a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{16 a^2 d}\\ &=-\frac {(75 A-163 B+283 C) \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(A-B+C) \sec ^4(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(5 A-13 B+21 C) \sec ^3(c+d x) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {(465 A-985 B+1729 C) \tan (c+d x)}{120 a^2 d \sqrt {a+a \sec (c+d x)}}+\frac {(45 A-85 B+157 C) \sec ^2(c+d x) \tan (c+d x)}{80 a^2 d \sqrt {a+a \sec (c+d x)}}-\frac {(195 A-475 B+787 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{240 a^3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 25.50, size = 7237, normalized size = 26.13 \[ \text {Result too large to show} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.57, size = 638, normalized size = 2.30 \[ \left [-\frac {15 \, \sqrt {2} {\left ({\left (75 \, A - 163 \, B + 283 \, C\right )} \cos \left (d x + c\right )^{5} + 3 \, {\left (75 \, A - 163 \, B + 283 \, C\right )} \cos \left (d x + c\right )^{4} + 3 \, {\left (75 \, A - 163 \, B + 283 \, C\right )} \cos \left (d x + c\right )^{3} + {\left (75 \, A - 163 \, B + 283 \, C\right )} \cos \left (d x + c\right )^{2}\right )} \sqrt {-a} \log \left (-\frac {2 \, \sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) - 3 \, a \cos \left (d x + c\right )^{2} - 2 \, a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) - 4 \, {\left ({\left (735 \, A - 1495 \, B + 2671 \, C\right )} \cos \left (d x + c\right )^{4} + 5 \, {\left (255 \, A - 503 \, B + 911 \, C\right )} \cos \left (d x + c\right )^{3} + 32 \, {\left (15 \, A - 25 \, B + 49 \, C\right )} \cos \left (d x + c\right )^{2} + 160 \, {\left (B - C\right )} \cos \left (d x + c\right ) + 96 \, C\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{960 \, {\left (a^{3} d \cos \left (d x + c\right )^{5} + 3 \, a^{3} d \cos \left (d x + c\right )^{4} + 3 \, a^{3} d \cos \left (d x + c\right )^{3} + a^{3} d \cos \left (d x + c\right )^{2}\right )}}, \frac {15 \, \sqrt {2} {\left ({\left (75 \, A - 163 \, B + 283 \, C\right )} \cos \left (d x + c\right )^{5} + 3 \, {\left (75 \, A - 163 \, B + 283 \, C\right )} \cos \left (d x + c\right )^{4} + 3 \, {\left (75 \, A - 163 \, B + 283 \, C\right )} \cos \left (d x + c\right )^{3} + {\left (75 \, A - 163 \, B + 283 \, C\right )} \cos \left (d x + c\right )^{2}\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) + 2 \, {\left ({\left (735 \, A - 1495 \, B + 2671 \, C\right )} \cos \left (d x + c\right )^{4} + 5 \, {\left (255 \, A - 503 \, B + 911 \, C\right )} \cos \left (d x + c\right )^{3} + 32 \, {\left (15 \, A - 25 \, B + 49 \, C\right )} \cos \left (d x + c\right )^{2} + 160 \, {\left (B - C\right )} \cos \left (d x + c\right ) + 96 \, C\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{480 \, {\left (a^{3} d \cos \left (d x + c\right )^{5} + 3 \, a^{3} d \cos \left (d x + c\right )^{4} + 3 \, a^{3} d \cos \left (d x + c\right )^{3} + a^{3} d \cos \left (d x + c\right )^{2}\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 4.10, size = 559, normalized size = 2.02 \[ \frac {\frac {{\left ({\left ({\left (15 \, {\left (\frac {2 \, {\left (\sqrt {2} A a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right ) - \sqrt {2} B a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right ) + \sqrt {2} C a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}}{a^{2}} + \frac {13 \, \sqrt {2} A a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right ) - 21 \, \sqrt {2} B a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right ) + 29 \, \sqrt {2} C a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}{a^{2}}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - \frac {1725 \, \sqrt {2} A a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right ) - 3685 \, \sqrt {2} B a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right ) + 6733 \, \sqrt {2} C a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}{a^{2}}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + \frac {5 \, {\left (549 \, \sqrt {2} A a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right ) - 1133 \, \sqrt {2} B a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right ) + 1973 \, \sqrt {2} C a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )\right )}}{a^{2}}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - \frac {15 \, {\left (83 \, \sqrt {2} A a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right ) - 155 \, \sqrt {2} B a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right ) + 291 \, \sqrt {2} C a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )\right )}}{a^{2}}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{{\left (a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - a\right )}^{2} \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}} - \frac {15 \, {\left (75 \, \sqrt {2} A - 163 \, \sqrt {2} B + 283 \, \sqrt {2} C\right )} \log \left ({\left | -\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} \right |}\right )}{\sqrt {-a} a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}}{480 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 2.02, size = 1439, normalized size = 5.19 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\cos \left (c+d\,x\right )}^4\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right ) \sec ^{4}{\left (c + d x \right )}}{\left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{\frac {5}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________